package com.site.common.interceptor.handler;

import com.site.common.interceptor.AbstractBaseInterceptor;
import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author xiaochi
 * @date 2022/4/30 18:06
 * @desc AccessLimiterIntercptor
 */
@Component
public class AccessLimiterIntercptor extends AbstractBaseInterceptor {

    /**
     * 具体实现
     * @param request
     * @param response
     * @param method
     * @return
     */
    @Override
    protected boolean execute(HttpServletRequest request, HttpServletResponse response, HandlerMethod method) {
        System.out.println("限流拦截器");
        return true;
    }
}
